import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'
// 查看景区
export const articleJinquListService = (categoryData)=>{
    return request.post('/index/jinqu?currentPage='+categoryData.currentPage,{})
}

export const articleImageListService = (categoryData)=>{
    return request.post('/index/imageList',categoryData)
}

export const articleImageDataService = (categoryData)=>{
    return request.post('/index/jinqu',categoryData)
}

export const articlePinlunListService = (categoryData)=>{
    return request.post('/index/pinlun',categoryData)
}

export const articleJindianListService = (categoryData)=>{
    return request.post('/index/jindian',categoryData)
}

export const articleJiudianListService = (categoryData)=>{
    return request.post('/index/jiudian',categoryData)
}

export const articleMeishiListService = (categoryData)=>{
    return request.post('/index/meishi',categoryData)
}

export const loginService = (categoryData)=>{
    return request.post('/login/login',categoryData)
}

export const registerService = (categoryData)=>{
    return request.post('/login/register',categoryData)
}
export const addYuyueService = (categoryData)=>{
    return request.post('/index/addyuyue',categoryData)
}

export const finyuyueService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/finyuyue?currentPage='+categoryData.currentPage,categoryData,{headers:{'Authorization':tokenStore.token}})
}
export const userDataService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/userData',{headers:{'Authorization':tokenStore.token}})
}

export const addPinlunService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/addPinlun?currentPage='+categoryData.currentPage,categoryData,{headers:{'Authorization':tokenStore.token}})
}

export const findPinlunService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/findPinlun?currentPage='+categoryData.currentPage,categoryData,{headers:{'Authorization':tokenStore.token}})
}


export const findMessageService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/fintongzhi?currentPage='+categoryData.currentPage,categoryData,{headers:{'Authorization':tokenStore.token}})
}

export const findfingonggaoService = (categoryData)=>{
    const tokenStore = useTokenStore()
    return request.post('/index/fingonggao?currentPage='+categoryData.currentPage,categoryData,{headers:{'Authorization':tokenStore.token}})
}





export const findDianpu = (categoryData)=>{
    return request.post('/admin/findDianpu',categoryData)
}


export const delpinlun = (categoryData)=>{
    return request.post('/admin/delpinlun',categoryData)
}

export const recommendJindian = (categoryData)=>{
    return request.post('/index/recommendJindian',categoryData)
}